package com.juren.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @ClassName ConfigClientController
 * @Description 测试从config-server读取配置
 * @Author zhangtao
 * @Date 2019/5/20 14:29
 * @Version 1.0
 **/
@RestController
public class ConfigClientController {

    @Value("${writer}")
    private String writer;

    @RequestMapping(value = "/writer")
    public String writer() {
        return writer;
    }

}
